//
// Created by 郝正辉 on 2020/11/21.
//

#include "page.h"

int replace_page(CListElmt **current) {
    while (((Page *) clist_data(*current))->reference != 0) {
        ((Page *) ((*current)->data))->reference = 0;
        *current = clist_next(*current);
    }
    return ((Page *) clist_data(*current))->number;
}
